Check if script is executed in an elevated mode : with sudo on Linux and from an administrator account on Windows.