stdout.strip() can return bytes

stdout.strip() can return bytes, so we get 
"TypeError: Can't mix strings and bytes in path components." on join