fixes for temp file clashes + empty alignment files