make: strip APPLICATION variable

Trailing white spaces in the application Makefile will cause the build
system to fail otherwise.
Merge pull request #1924 from OlegHahm/strip_application_name

make: strip white space from application name