Fix creating directory for models