fixed a tiny bug with file output where it wouldn't record if the directory didn't end with a slash