fixed possible bug & Mac OSX compatibility issue with rm
fixed possible bug & Mac OSX compatibility issue with rm

fadeenk/PiTrol,AlhasanIQ/PiTrol,Lamassau/PiTrol,AlhasanIQ/PiTrol,fadeenk/PiTrol,Lamassau/PiTrol