only writing api status to local file if it was updated
Merge pull request #832 from shatterednirvana/validate-api-status

only writing api status to local file if it was updated