Fix passing directory argument