Fixed directory context menu behaviour, fixes #15