Fix log directory variable setter

Instead of we wanted to trim right side instead of left one.