Minor fixes on file association method (Linux).