rose.fs_util: makedirs: handle broken symlink.

If path is currently pointing to a broken symlink, the function hangs.
This should fix it.
Merge pull request #614 from matthewrmshin/fix.fs_util.makedirs

rose.fs_util: makedirs: handle broken symlink.