Make application PID file location configurable from Environment property

Added missing file header and JavaDoc.

Fixes gh-1579