Remove file extension from require function.