Fix access to bash var