Attempted to add outputs directories. Added a validity check for path names