updated build script to include mercurial