Fixed controller generator

Controller builder was initialized with an inexistant path.
Correct file permissions

Only executable scripts should have the executable bit set.
Merge pull request #148 from ragol/master

Fixed controller generator in builder of type modules