Fix: allow extensionless js files to be read using the cli (fixes #1131)

Fixes #1131.
Why was this removed? We still need to warn when an explicitly specified file is ignored.