allow relative directores for --dir