Better modulefile

* check that PLUMED_KERNEL is not redefined
* disable paths for libraries if plumed is statically compiled

Also fixed "make uninstall" so that it always clean up dynamic libraries