Updating rc.py to be more sconsy, using a builder instead of a method and better handling dependencies.