Fix for root dir not being an abspath.

This shows up in commandline execution, since dirname on a relative path
returns a relative path, and the root_dir is by default dirname of the
root manifest.