uses rails environment variable for datadir