For Xcode 6 compatibility the application directory is found with instruments.
Merge pull request #4 from chbeer/master

Xcode 6 compatibility