Update scripts for bsd support.