minor bugfixes to ramfs generation