Correct basename -> dirname