Family credits dog for alerting them of house fire