Corrected check for pre-existing build.