standalone scripts to get around export -f oddness since bash 4.3.30 http://unix.stackexchange.com/q/159883/43935