Well I think it has notthing to do with that because I start the script manually after the boot-process is finished. But still it works fine for me.

I will look into the man rm, I did not do that yet.
(There are a lot man's (to much) I did not look into yet).