handle errors from rs.realpath()
Merge pull request #7 from carlos8f/cr/realpath_errors

handle errors from rs.realpath()