scripts - fix stat call