fixed path to required directory option