checkFree can now handle files as paths