Adding some jenkins support
mock.py: move internal methods to top of file
mock.py: handling hardcoded paths
Handle broken BUILD symlinks better.
NO-MERGE: patch test_checks for CentOS 6.3