update run_fluxbox and rotate_logs functions