gobal option for re:replace() in get_install_dir()

Adding global option to re:replace for the case when code:lib_dir() returns string with 2 or more ~.