fix the bug of linked_dirs
Merge pull request #44 from caok/master

fix the bug of linked_dirs