Changed SConstruct to be friendly with hierachical builds