added check for install_dir