fixes #6381 - TFTP orchestration checks applicability of medium to OS late

you would need to rewrite operatingsystem.pxe_files(medium, architecture) to accept a host, and then use the os.medium_uri(host) to get back the value.