common: Don't use 'dir' variable
common: Don't use 'dir' variable

Using dir variable name was hidding implicit variable used in functions
file and some other.

Weird.

redhat-cip/edeploy,redhat-cip/edeploy,redhat-cip/edeploy,enovance/edeploy,enovance/edeploy,redhat-cip/edeploy,lebauce/edeploy,lebauce/edeploy,lebauce/edeploy,enovance/edeploy,enovance/edeploy,lebauce/edeploy