Fix #244: Add pre to nightlybuilds but not release builds. Everything else gets +dev
Fix rules.mk