Fix test directory constants
Remove unnecessary realpath calls
Ignore eclipse prefs