Automatically determines file licenses based on license headers