Use tput to get ANSI color escape sequence

Hardcoding these sequences is a very bad idea:
http://mywiki.wooledge.org/BashFAQ/037

Signed-off-by: Rohan Jain <crodjer@gmail.com>
Use base_name instead of file_naem for logs

Signed-off-by: Rohan Jain <crodjer@gmail.com>