I suspect you misunderstood the question. How did you verify that the script is running from the same directory? We aren't talking about the directory that the script resides in, but what the current working directory is when the script is run, which is why chdir was mentioned.