Fix permissions on logfiles during deployment