Tidy up the path check for plugin path