updated build script to dynamically find documents folder