chdir option now working 100%