Improved linux kernel packages environment handling