Improved copyright script, not it does not fail if it has not xml definition