fixed typo for shelljs variable
used delay invocation of dependency until runtime to resolve circular dependencies