sde-check-system: added bc to the paranoia check

Since linux kernel version >= 3.10 bc is needed to build it, which is a
side-effect of removing the dependency on perl.
sde-cleanup-linger: improved patterns to not remove any file starting with 'core'
lib/function.in: fixed to not prefix CMAKE_INSTALL_PREFIX with $root