#1087212 by dealancer: refactored code, solved issue with caching, added more comments, solved issue with spaces in menu path