various bash fixes to centos 5 docker kickstart

@jperrin your bash sucks and you should feel bad.