Simplify Linux spawn() implementation