Perl natively supports renaming files and create directories. Do it without calling system(). Signed-off-by: Matteo Croce <teknoraver@meta.com> Link: https://github.com/openwrt/openwrt/pull/16542 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>