Can you do this check at the very end? The if/else is trying to be more platform-independent.  Why skip the `en1` business?