Add fix for NaN versionCode when manifest.version is single digit (fixes #374)