Fixing the sys command executor, so empty strings would not be set for commands without newlines