Improve directory filtering
Simplify post-checkout composer.lock hook