having difficulties in copying files (cannot get the current directory that the program is running), but copyFile seemed to be working