Use dirname( __FILE__ ) for PHP 5.2 compat