Changing flag directory