Various wpe-related bash functions