Fixed build script, previously threw error if no sonatypeUsername and sonatypePassword property was set.