Fixed secure env
Fixed delete and create build dir