Move backup folder creation to after free space calc

Also fix free space calculation