fix-perms script

Signed-off-by: Simarpreet Singh <simar@linux.com>