fixed unix '.' being detected as file extension