Fixed running on android-4.4

added some lines to fix the issues with the new naming convention for the build tools

Also added code to create the res/raw folder if it doesn't exist. Previously it would say that the file should be there but it wouldn't get created.