add test for writability of /usr/local/lib in OS X startup script