Fix initial rootdir value and allow autocreation of rootdir