Remove log file before creating logger

Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>