generic install script that will create directory path if it does not exist