fixing issue 1089 principal_cordinates.py failing if the input folder co...

...ntains other folders