Improved file-handling procedures in mobile-wizard.py