Fix build case + provide repo replace interface

1.Fix the build fails_msg
The commented line is for 'empty_base_image' and another one is based the rhel7 image
2.Provide the repo replace interface
Use two functions to find the Dockerfile's FROM token and replace its value which is what the repo is.
And provide the configuration dockerfile_use_config_repo to control it

Signed-off-by: Time Su <lsu@redhat.com>
Ahh, okay, so this will be easy to do re: https://github.com/autotest/autotest-docker/pull/430/files#r21832926

``use_config_repo = self.config['docker_repo_name'] == ''``

(or after rename suggestion)

``use_config_repo = self.config['base_repo_fqin'] == ''``

(I think that's right)