diff --git a/HGamer3D-Data.cabal b/HGamer3D-Data.cabal
--- a/HGamer3D-Data.cabal
+++ b/HGamer3D-Data.cabal
@@ -1,5 +1,5 @@
 Name:                HGamer3D-Data
-Version:             0.3.0
+Version:             0.3.1
 Synopsis:            Game Engine for the Haskell Programmer - Data Definitions and Utilities
 Description:         
 	HGamer3D is a game engine for developing 3D games in the programming 
diff --git a/HGamer3D/Util/FileLocation.hs b/HGamer3D/Util/FileLocation.hs
--- a/HGamer3D/Util/FileLocation.hs
+++ b/HGamer3D/Util/FileLocation.hs
@@ -42,6 +42,7 @@
 where
 
 import Control.Monad
+import Control.Exception
 import System.Directory
 import System.FilePath
 import System.Environment.FindBin
@@ -62,8 +63,11 @@
 getAppLibDirectory = _getHG3DDirectory "lib"
   
 _getBinDir subdir = do
-  bdir <- getProgPath
-  let ndir = bdir ++ [pathSeparator] ++ ".HGamer3D" ++ [pathSeparator] ++ subdir
+  bdir <- try getProgPath :: IO (Either SomeException FilePath)
+  let bdir' = case bdir of
+        Left _ -> "."
+        Right path -> path
+  let ndir = bdir' ++ [pathSeparator] ++ ".HGamer3D" ++ [pathSeparator] ++ subdir
   return ndir
 
 -- | path of media, relative to executable
