Fixed file size check to work across *nix platforms

replaced `stat` utlity with `ls` and `awk`