Now upload_dir is a command line parameter