Updated cli.js to have a reference to fs

fs reference was missing, so when using --test-dir flag, exception would occur.
Resolves #186