Builds main script adding directory build and logger initialization.