Remove empty first line
Update Copyright in license header
refactoring: code moved out to 'check_dependencies' function