updated oscillopscope script to handle permissions issues