Fix file_logger format and add abspath for log directory

When specifying a file in the same dir with -l it would error so
now looks for absolute path before trying to mkdir an empty string.