accept parameters in stub script
adjust regex to handle file/$version on download page