Use correct flags for pre/post scripts