Update dirname variables