Expand formats in copy-pipe command, suggested by Suraj N Kurapati.