fix broken-ness in rebar reltool building. Fixes #13
fix bugs in smart version generation