first attempt to fix it
Find last index of .coffee, and take the rest as the name
Usig file_ext in rfind()