Fix cp19258

Add check if running on 64-bit OS and change directory accordingly.