Added exception if repository points to invalid package directories