add retrocompatibility thanks to dirname(__FILE__)