Fallback to pwd if realpath is not available
Merge pull request #1055 from andreif/feature/realpath-fallback-osx

Tests: Solr test server script now handles OS X without realpath / coreutils (thanks @andreif)