Fix Literate CoffeeScript detection

Current check fails if module path has query string.
We should check module name with extension instead of path.