Issue 50954 - Port buildnum.pl to python(part 2)
Description: If the env var SOURCE_DATE_EPOCH is set we need
convert it to an Integer when passing it to gmtime().
relates: https://pagure.io/389-ds-base/issue/50954
Reviewed by: mreynolds(one line commit rule)