Merge pull request #11 from torstehu/master

Merge changes to make buildepoch.sh more portable.