Thanks curaga, I added that and it saved a few lines of test cases and such and the need for findutils.
Sudo was missing in a couple of places, hence files left behind. Hopefully fixed the remaining bugs, uploaded the result. Hopefully all that is left now is supporting the different window managers.