Added support for FreeBSD
Fixed require_once path for bin/*