Fix isReleaseBuild logic