Changed the way the permissions on the target machine are set.