Fixed bug that confused directories for licenses; improved rate limit checks; made logging terser.