fixed way to set linked_dirs