You were right Otto, calling VsDevCmd.bat changed the working directory to "c:\Users\user\source\".
Modifying "CompileVC.bat" found in "C:\Program Files\Wolfram Research\SystemModeler 5.0\SystemFiles\Scripts\" in order to change the working directory back again to the original one solved the issue.
Attachments: