If we're in Program Files or can't write to the directory for some reason, disable portable mode.