fix options handling and extend install_dir to other processes