remove hardcoded home folder and fix perms