now I can call check.py from any folder. But I still need to find how git or mercurial do this.