Add function to expand port ranges for preprocs config