Fixes getRealPath usages

Closes #84.