Change dir to working dir for better compatibility with graphics etc