scripts: initproj: Fixes.

Fix .hgignore is created instead of .gitignore, and also malformed
build.sbt in scala scaffold.