Also check if file does not exist on getTimestampPidFile

It can happen, specially with long running jobs, that somebody decides to delete the pid file externally. In such case, enable a check on the existance of the file. 

Pendant: test it properly.