Restart script automatically when change is detected

Useful when a new version of script is installed. The script restarts itself to avoid potential error messages.