changed platform detection method for loading of native 3d code to use the folder names