Sha version support

- Support SHA's as version in .info files (12 or more chars).
- Updated test-case that checks the support works
[a-z]? SHAs are hex strings, so it should be [a-f]. Also a testCase for a SHA with non-hex chars being rejected.