Fix $modname in update_translations if $NOUPDATE is set
Test Plan: Completely untested, I simply read the code, noticed the potential issue, and refactored accordingly
Reviewers: aacid, ltoscano
Reviewed By: aacid
Differential Revision: https://phabricator.kde.org/D24509