Externals PRs: A Few modifications to make it work with jenkins

This is wrong. You should have used ${CMSDIST_PATH-/build/cmsdist} so that you can still set CMSDIST_PATH from jenkins but a proper default would be used in case docker is used.