Modify setup script permissions.
Add logging function and use it in basic setup script