Use chdir instead of absolute path.