Check for a valid root directory