more bug fixes in directory & link handling (recursive)