Update install script, fix #344

This will make the install script compatible with automated configuration tools,such as puppet (Including the puppet module which i have created)