Clean up shell functions