added back the existence test on prof file
added back the existence test on prof file

Modification by Martina that was lost because of my mis-manipulation of
git. Oh well, I am learning slowly.

StagPython/StagPy