remove ugly-code with less-ugly-code ;)
some realpath() calls removed
error message improved
remove prefer_amazon_over_google configuration
generic libraries replaced with configure_dependencies