Add static method to check path for Win