Use gitattributes to keep empty directories; move created files under var/