Fix bug in PCA script when using SGE