fixed getenv bug, was not possible to set bert_port