fix #264: \dir fails in Windows