Add a pid file to check if nightly.py is already running

Change-Id: I33c1858af84b41de716f5f7584ab42ce21aea006