Fix bug: Trying to mkdir even if check fails
Break if file exists
Fix output