Check for root user earlier

I recommend checking root privileges before the 'su - ' dependencies