getSampleCode Windows path fix