updated posix version to return a proper system path