Update cli.js

Added ability to locate output directory