remove hard-coded paths from upgrade script