Build as folder

Requires #44 to be merged first.