[WFLY-1305] After boot-time deployment failure, replace wrong file marker and remove wrong deployment.