Use os.getcwd() instead of os.path.samefile() on Windows

os.path.samefile() is not supported on Windows