update download_magic so that it takes input directory as a command line argument.  update QuickMagic correspondingly.