Add pid to temp file path

This allows for safe removal (in future)