Updated the cmake minimum version, and changed the execution method for the directory scripts.