baseimage: Fix cache permissions before creating symlinks

Fix GH-37