Fixed problem with XCode

There was a problem with Build dir creation.