fixed bug that was triggered when first creating recent files folder and optimized printing into console