Fixed error on finding the directory in Windows