Quick fix for default output directory needs further testing