fix backwards posix_spawn file action order