Fix gtests SystemInfo,Mime,DownloadQueue,Directory
GetCommonPath: Cleanup, use return value, add test