Update script helper phases to check process owner when reading PID files