Improved script which asks for password configuration
It should now correctly stop and delete itself when a password has been set