Fixes #1189: fixed wrong path error when running a single file under Windows