Fix path and permission problems

I have problems using teh gem as it is with some paths and permissions. I fix every problem I found