Correct slash behavior for dirs passed as pattern