Flush before app files are copied