Further realpath() fixes