I think you will need to give more information about what you want to do. If you don't want to use M: then can you not just change it to whatever drive you want?
Add a debug node set to Output Complete Message showing what is coming out of your function node. Also tell us what happens to the message. If it goes to a File node then show us how you have configured the file node.