Make Path matching more strict in RestService; fix issues matching root path