configpath.js refactored
tests for configpath.js
configpath.js tests improved