fixed issue where plugincache is a directory
Merge pull request #1 from hubsmoke/master

Fixed error w/ directory