Fix for hard dependency on filesystem function