Some minor cleaning up [ci skip].
Fixed the issue with newly built application not opening under OS X (closes #347).