added replacement for %root_dir%