Fixed regression in fopen_case(): realpath works only if the passed
string ends with "/", IOW if it's a path, not a file name.