build.sh: support alias mode Dockerfile

alias mode example:
Dockerfile only one line: FROM another image

Signed-off-by: tsaikd <tsaikd@gmail.com>
www-servers/tomcat/7: alias to www-servers/tomcat/7.0.57

Signed-off-by: tsaikd <tsaikd@gmail.com>