[FIX] build.py works with no hg repo present