fix detecting a clean build