Moved dir check to only_ifin