Fix up to work on Ubuntu 12.04. Don't die horribly if you call real_path on an broken symlink