Fixed hard coded directory

Changed the hard coded directory to the directory assigned earlier in the script.