Fixed bug related to directory permission in the configure.py

Signed-off-by: Herbert Rocha <herberthb12@gmail.com>