fix bash function exports