Fixed the prerelease and debug flags to be read correctly.