fix folder scope #302

trailing slash now included in `path` instead of in `match`

cc @dhcole @tristen @michael