Fixed currentDirectory changing code