Improve data and log directory permissions