Problem found, /home/nemo has wrong permission. It is owned by root and not by user nemo, so no write access and this is why this script fails. Code: devel-su chown nemo:nemo /home/nemo solves this and setup continues. EDIT: Haven't seen that you already fixed that
devel-su chown nemo:nemo /home/nemo