make: strip APPLICATION variable

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