fixes #31, making validation of plugin paths more dynamic