added -a option to automatically add new version of package into repository
now using environment variable instead of cmdline arguments