Removed all calls to Path.toRealPath