I want to try to package erlyvideo in a rebar-like bundle when all beam files are in one executable. It seems to be very convenient to switch behavior: with -d key erlyvideo is funning foreground with shell available, without it it launches as daemon. Is it possible to do it with escript or I still need several different files?