handle errors from rs.realpath()
minor cleanup
0.2.5 fixes realpath errors not being handled