Use shell date for ota correctly