Script is now correctly finds the working directory