If condition in the build script fixed