Fixup Scm and its test.

Support environments like travis-ci with no proper user config:
  setup a repo identity in test
Fixup _get_remote implementation (kill quoting) and test.
Spread testing to python 2.7 and java 6.
Use a multiline string for the script.
Merge pull request #139 from jsirois/jsirois/fix_scm_tests

Fixup Scm and its test.