serve: better detection of prefixes and manifests paths

* remove duplicate paths
* by default, also look for manifests in manifests/ subdir of all prefix paths