Extract common part to install service script
Make installed service script executable