removed usage of dirname(__FILE__)