Fix Mac OS X build script - only sed when there is install target.

Projects using Urho3D as external library may not define any install target, so the attempt to correct CMake generator known issue back fired and caused an error.