A small tip, you might like to consider using absolute path names rather than relative. The path given will be relative to the current directory when the program is run, which is often not the same as the directory in which the script is stored. For example: