script failed due to wrong working dir. Fix