Tests for other ruby versions.

File.realdirpath should not work for all ruby versions.