Workaround of os.path.samefile

os.path.samrfile not implemented on Windows. Adding alternative using
os.stat