Fix url_has_any_extension bug

posixpath returns extension with a leading dot. Remove it as extensions in IGNORED_EXTENSIONS list do not have the dots.