handle versioned needle dirs