Use basename and parent dir in log output