Some fixes applied while running the script on a vanilla Wheezy

Hello Midacts,

I've struggled a bit with some aspects of your script on a newly installed minimum server. Added some build prerequisites, and some path modifications.

Best regards,
willydee