corrected chdir for home