Reverted changes to use build manager. Added better way to find the
roots of source folders.