Set the working directory of this script to its home directory. That way, if it is ran from elsewhere, the relative paths will follow.