bug fix: check for empty classpath correctly