fix current working directory bug when called from other scripts