fix services.<name>.path to work both with list and string

Happened when writing my own services, where path = []. The current code assumes it's a string but sometimes it's not.