Fix permissions during installation