fixing issue with install_directory being undef