Allow --include to work with extensions

Fix to allow `--include` to work with extensions other than '.js'.