os.chdir fixed (no bug now)