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