get the $CLASSPATH variable right and allow proper URL as well

adjusted some specs to check for path expanded entries. #2216