[COOK-3297] tftp is not working properly for RedHat based systems

I have tested the changes, this now works appropriately for RedHat based systems.