_get_dflags does not need to be called if it has been passed via kwargs

This also reduces drastically the number of unnecessary system calls.

Ticket:	#5602