correctly return invisible variable data after loading from cache into environment
use dirname to navigate up directory tree.
formatting