corrected typo in dirname