Fixing permission related issue on linux.