Fixed potential undefined index on path variable. Closes #9.