fix NPE on Windows system connected with initial root path