Support installing branches.
Fix regex and use indexOf to check string ending
Merge pull request #430 from bendiy/master

Support installing branches.
resolves xtuple/xtuple-server-commercial#140