Encapsulated variables in quotes to prevent globbing and word splitting.
Added ./ before *.log to represent files starting with a dash from being seen as options.
Fixed bug where while loop was immitating a for loop and using bc to increment counter variable.
Merge pull request #4 from xzovy/master

Encapsulated variables in quotes to prevent globbing and word splitting.