Automated script relocated

Closes PR #299
Double brackets are syntax specific for ksh,bash and zsh so it works on both bsd and linux. Single bracket is probably pointing to /bin/[ on the system and is not the same for all *nix type systems. This means that the might break if you run your script on linux and want to move it to bsd system.