Add missing detached option for spawn