linux: Fix error when generating symbols.

Somehow strip would return 1 when a directory is passed, so we have to
wrap it in a script to avoid the error.