bug: fixes file path with extension parsing