Routine to find project root

This function iterates all the parent directories of the current
directory and look for a manifest.json file. If it gets a manifest.json
file, that will be taken as the project root directory. All paths will
be relative to the project root