Fix bash function syntax