Fix custom_dir option, like rly