replace strftime_l with our custom formatter
use execv and pass non-inline argument for gcc
use dirname() on copies of the parameter only

glibc's dirname() modifies the parameter