Build a global map of last used build directory for a given source directory so that running a build command from a source directory also works.