Fixes to \ and / handling for OpenOCD