Fixed handling of plugin path in sys.path