Refactoring installation script to use the code which is now part of FOF