Checks for directory exists before adding to PATH