Update to check for the existance of the prefix dir