Fixed a bug that prevented abipy import on macosx

The directory "~/Applications" may not exists on Mac OsX.
Therefore, enclosed lookup in a try/except statement.