Wrapper for some simple OS functions