Remove chdir from instances