Retrieves environment variable from the system.
Retrieves environment variable from the system, if the value is not found, recoverBlock is executed.