extract project and directory from the ROOT