fix /path/.json behavior