fix deploy script to build correct directory structure