Use log_check_call instead of subprocess module