Fixed implementation of Middleman::Util#path_match, added tests for it