make: strip white space from application name

Trailing white spaces in the application Makefile will cause the build
system to fail otherwise.