fix tests when julia not on path

Also use `dirname(@__FILE__)` rather than `Pkg.dir("DataFrames", "test")` as it's possible someone would want to install the package under a different name.