set file's directory instead of CWD