Store information about current working dir and reset on halt