I ran the app, shows the msgboxes saying what is going to do but the results are never shown, the app didn't crash though, and yes, I got the Superuser request and granted access.
I don't think that there is a reliable way to do it. The code I posted on the first post is based on a solution I found. Apparently it doesn't always work.