Changing the destination folder

Debugging  the code so that the program can run in a different
directory.