1) Added the executable bit at the autogen.sh file.
2) Fixed a small bug with makefile which was causing config.lua not being automatically copied into src directory.