Added lodash dependency, made code work
Fixed relative directory determination