validate modules path on scan + fix a bug w/ nested dirs