changed matching rules inspired by https://github.com/weavejester/compojure/issues/42