Added some logic to make sure we don't much with working directories of anything that launched the startup script