Minor fixes with init script and directory permissions