Improve detection of license

Add test for apache