Fix hg dependences and bin paths