Fixed a bug in the regular expression that determined if a filename had an extension.
Updated version to v0.3.1