Added wapper around getcwd() to track allocated string.