Add signal handling and globbing to mesh code