fix overwrites EXPOSE

Fixes #1234 

Now use Backend instead of Frontend to see if PortSpec should be overridden.