Don't force 'file' link type if 'none' was set

Fixes #2.