[CB-4800] Workaround a Short File Name error on WinXP while maintaining fix for long paths

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>