Always create the target path before building a project.

Should hopefully fix issue #62, but still needs to be tested on OSX.