Create directories as the correct user and group