added better config management on cachepath avoiding it finish with "/"