[#201] added platform sniffing and a method to build directory paths for windows