Licensing info in readme and detect.sh

Added licensing info to readme and fixed the license information in the
script.