change to dir if it exists in code dir

...otherwise try in local directory