Passing a custom-dir without setting serial was not working