Fix defaults.conf not found issue when scripts are called from another directory