Request root permission when enabled

Fix build.gradle
Request superuser privileges when root is checked in preferences