Extract shell functions to executable files