changeDirectory works