fixed progress file creation, it created a directory before.

Signed-off-by: Keridos <fuffzehn@gmail.com>