Added NumberFormatException catch to getLocalVersion()

This caused crashes when debugging locally, as instead of Travis version the name of the env varaiable gets written