Changed the working directory to a variable