fix bugs with path normalization for plugins files