small fix for create folder
Merging with master, checking the variable is actually defined now