add support to override the system profile

This allows for doing dep resolution, visibility scanning, and whatever
else across profiles other then the current system profile.