Use dirname