Add prefix support for autoupdate (issue #3962)