Changed method of detecting devices

Reads contents of build scripts to see if there is a lollipop build
function instead of using build scripts.
Checks for build scripts for all devices