Added chomp to on_path? for callback paths with trailing '/'

This PR fixes the cases where the `callback_path` requires a trailing slash, the `on_path?()` method.