Detect pc build targets correctly

Combine 'hosted/' with device name (e.g. 'linux') in search string to recognize 'hostes', 'hosted/linux', and 'linux' as valid targets.