Fixed #122: Call to undefined function trimSubDir()