Redundant dirname is redundant