Changed command to shell

Shell is now used instead of command in an attempt to fix issues with
deletion.