Australian pie maker Patties Foods has posted an increase in first-half profits, despite experiencing "difficult trading conditions" in the period.