Fixed asset generator handling "-"

Incidentally made the script work on Linux.