Made CHMOD work on more devices (tested Nexus 7, Galaxy S4)