pdist must be executable