made script generic
Merge pull request #9 from kurzum/master

fixed small issue with renamed files