Updated deploy script to handle directories in flexget