Added the GRASS 6.4 version of the script