Rewrite path_contains? to path_is? and fix #31