build: Detect standard slice directories on Linux, MacOS X and FreeBSD
Merge pull request #2978 from rleigh-dundee/slice-autodetect

build: Detect standard slice directories on Linux, MacOS X and FreeBSD