removed not required functions
get directly FETCH_HEAD instead of version.php
Merge pull request #319 from daeks/update

Update