use magic __DIR__ instead of dirname( __FILE__ )