Remove directory dependency from library