fixed init_logging script

Added sleep and fixed grep