Finally a POSIX way to check if a function is defined!
Re-enable checkbashisms in Travis-CI.