When the app is run using sudo doesn't root as we want