Snow Leopard: Fix ls bug in retrieving dependencies