Wait for files if they are unavailable
also wait when deleting files