Fixed rootdir problems.