Change how SNAPSHOT version can be used

The old snapshot code didn't work the way I wanted when building for release. Because "build" depends on "test" and "test" depended on installsnapshot the output version was always a -snapshot version. This change makes it clear that a snapshot version is being built if and only if -Psnapshot is used on the command line.