diff --git a/CMakeLists.txt b/CMakeLists.txt
index f073f74719e6ce6ff99d331050e371112da30883..2ee897922e654c5241b30e00302150149528a9c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,7 +85,9 @@ install(DIRECTORY ${MOOSE_EXAMPLE_DIR}/
     PATTERN "*.pyc" EXCLUDE
     )
 
-configure_file( ${CMAKE_SOURCE_DIR}/cmake/moose.in ${CMAKE_BINARY_DIR}/moose )
+# Copy the command to launch moose.
+file(COPY ${CMAKE_SOURCE_DIR}/moose DESTINATION ${CMAKE_BINARY_DIR})
+
 install(PROGRAMS ${CMAKE_BINARY_DIR}/moose DESTINATION bin)
 
 ## UNINSTALL
diff --git a/cmake/moose.in b/cmake/moose.in
deleted file mode 100755
index c1c5872d902cea13341e0781e829c72a7b016c28..0000000000000000000000000000000000000000
--- a/cmake/moose.in
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env bash
-
-(
-    cd @CMAKE_INSTALL_PREFIX@/lib/moose && python mgui.py & 
-)
diff --git a/moose b/moose
new file mode 100755
index 0000000000000000000000000000000000000000..0581437730818bd56eb344b90fcab8ffaba9d5b3
--- /dev/null
+++ b/moose
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
+(
+    # Get the current path of script.
+    cd $SCRIPT_DIR/../lib/moose/gui && python mgui.py & 
+)