Fix possible errors with getProcPath and getProcName