fixed issue with changing to root directory