Fix #114 HamlPyExtension filename extension check invalid

Fix  to issue #114 using @aydinyanik's proposed fix.