Control Panel: core upgrade fix related to files permissions in ftp-mode