Make use of etc module for determing root directory on some platforms