That's perfect. I'm mainly concerned about this being non-portable and breaking other configurations. This looks reasonable though.