install.sh: Make FreeBSD-friendly and other fixes
install.sh: Make FreeBSD-friendly and other fixes

Fix cases where given commands (e.g. wget) were more likely to be found on
Linux than FreeBSD.

Fix stat(1) invocation according to platform.

Use --local-infile=1 in mysql invocation in order not to trigger MySQL
security alerts in some cases.

lcorbasson/rer-web,lcorbasson/rer-web,lcorbasson/rer-web,lcorbasson/rer-web