Fix permissions bug in setup template