repositioned usage checking so a log folder isn't created if the script doesn't actually run