refined the disk space checking strategy, fixes #74