check if process exist. If not exist remove pid file