Fixes for 5.2 compatibility & a couple other fixes

* Changed `__DIR__` to `dirname(__FILE__)` for php 5.2 compatibility 
* Fixed extension of input data when application data config option isn't set
* Fixed user override of inputDataPath option