Avoid libdir in definition of methodsdir