added support for not defining the extension to svg files, assumes files without extension are svg files