I don't know how you're parsing your conf file, but
I'd check to make sure that $Path->{'real'}
doesn't include a trailing newline.
As a practice,
when I'm printing out variables when debuging, I'll print
delimiters around the variable to make this easy to see.
For example, in this case something
like print "|", $Path->{'real'}, "|\n";.
If the second | ends up a line by itself,
the problem is clear. (And chomp is your friend).
That may not be what the problem is in your case, but
it's worth checking.