Updated upload script to read from a config file