Make sure that no empty filename is passed