Configure log directory and rename TOP_DIR

@Flupsy @mhl would be great to get your eyes on f5b19255 – cheers.