rose.fs_util: makedirs: handle broken symlink.

If path is points to a broken symbolic link, the function currently hangs.
This should fix it.