use more general way to find main executable file
use gtime if it is available
more explicit colors
licence