More realpath() fixes - my fault for treating relative path resolution
separately :)