Mercurial build support

Build for mercurial hosted projects (and automatic delete empty and trailing space lines)