Use a static class variable instead of function internal and always create dir