Fix directory copy command for unix

 DIRECTORY_COPY_COMMAND_FOR_UNIX_DEFAULT did not check for the result of the 'cd' command. If it failed, the directory would be copied to the orginal working directory instead.