This is more a discussion bug whether this should be done or not. This script is old, broken (wfImageDir and wfImageArchiveDir were removed in r22580 but are still called by this script) and confuses people (see r58941). In my opinion it could be simply deleted.
Version: 1.17.x
Severity: enhancement