Use pkg env in jagen script
Added auto pull on refresh