Add support for files and archives in shell command