removed bashisms and use $() instead if backticks
prefix is not bindir, work more like in autconf ./configure --prefix=<prefix>
Merge pull request #5 from Thaodan/master

Remove Bashisms, correct semantics for PREFIX