tiny mod to fsUtils
fixed basename and dirname in fsUtils.js