Fix bugs when loading kernel from environment path