Separates static and variable data directories and changes session config