depending on compress command change extension