m7ul: improve proprietary file handling