Change pwd if file is opening in an "unused" editor