Fix qemu path apis

This is basically a remake of PR #1459. I'm not the biggest fan of trying to fix wrong user input, but I can see the benefits of doing so, as long as the log indicates what is being done.