I finally managed to make this work. In fact, the only problem was the way I ran mpost.exe, the code was clean. I solved the problem by passing the relative path to my mp file to mpost.exe instead of the absolute path. Strangely enough, the problem caused by the absolute path only triggered with a non-empty verbatimtex..etex command.