Little enhancement of build() function documentation
Fix dependency cycle analyzer to work with internal goals
(goals not directly declared in build() but given as dependencies)