Add some cleanups to existing code
We don't need root privileges for executing langavailable command
Use actual function instead its own code