Could not get correct extname from filepath

Watson can not detect '.haml' from '.html.haml'.