made size check not crossing file system bordes,
replaced expensive call to 'du' with variables