Fixed foundation script dependencies