Use 'Pathname' instead of 'Dir'