I assume that `options['pe_dir']` is the install path, and totally invalid for upgrades.