Better directory handling/conversion.