Fix issue when creating externs directory