Squashed commit of the following:

commit 59b2827c4ae571f89c059bd85d4bd16b02a1d9c1
Author: Larry Hosken <lhosken@twitter.com>
Date:   Tue Mar 4 11:46:54 2014 -0800

    doc scripts: this might work in BSD