Rewrite findBasePath function

When there is a duplicate folder name in a directory tree the grunt-lib-contrib findBasePath (depricated!) function returns  the tree without 1 of the folder names..

example: app/static/app/sass/ will become app/static/sass/ and the styleguide generator will fail because it can't find its files.