[UPNP/JSONRPC] Allow usage of path that are inside sources

Continuation of 1220d8c4a9
The checks are now available as a function in FileUtils and common to UPNP and JSON
Also make the check correctly works in JSON as current implementation have flow allowing browsing any directory with Files.GetDirectory.