Plugin lib: check path validity