set RessourcePath as a method instead of a define

it allows the application using cobalt to set the ressource path for
each controller.