Use $cwpath instead of re-calcing x64/x86 platform