Fix directory existence boolean variable