Changed for path.join some validations