use absfpath when chdir