Tighten up version match regex
Style cleanup

Strip away excess comments, name stub, use single-quotes for strings.
Clean up version mapping
Ensure paths start with . for require()

Without the leading ./, require() will not do a relative load
Add tests for OS and arch path components