Improvements to 'reinstallAddSourceDeps'

Make `reinstallAddSourceDeps` work as expected when the user is switching between multiple compilers in a sandbox.

This does not implement per-compiler timestamps (WIP).