m7tmo: improve proprietary file handling