Kpm wrap update existing projects instead of creating new ones in wrap folder

parent #904 
Calculate the rootDir from the project directory instead of assuming it's the same for all projects.