repaired fix_permissions script for rpi
simplified fix permissions script