replaced lazy open(mtab) with proper system calls