Fixing up commands used for located hg repositories in the build system.

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>