Make it recognise when we put directories in with a trailing /