Bugfix: memory corruption, input length issues

STS "shell" now properly forms a filename for the command to execute.