Strip .js or .coffee suffix from file paths, since we won't use file path to infer module format.