Add missing dependency
Fix directory check
Fix curl command
Attempt to fix flask